$(function () {
	var windoww = $(window).width();
	$('.f-right').click(function () {
		if(localStorage.LOGIN){
			$('.sjj_nav').toggleClass('nav_show');
		}else {
			window.location.href = "/pages/login.html"
		}
	});

	$('.sjj_nav ul li i').click(function () {
		$(this).parent().children('ul').slideToggle().parent().siblings().children('ul').slideUp();
		$(this).toggleClass('sjj_nav_i_se');
	});

	$('.sp_nav_xjb').html('<svg t="1496193951932" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="995" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <path d="M768.468 428.876l-84.723-84.723-170.711 170.711-170.711-170.711-84.723 84.723 170.711 170.711-0.092 0.091 84.723 84.724 0.092-0.092 0.092 0.092 84.723-84.724-0.092-0.091z" p-id="996"></path></svg>');

	verifyLogin();
});

function verifyLogin() {
	if(localStorage.LOGIN){
        var login = localStorage.LOGIN;
        var parse = JSON.parse(login);
        axios.post("/userMobile/verifyLogin.do",parse).then((res) => {
            if(res.data.flag){
                localStorage.LOGIN = res.data.data;
            }else {
                localStorage.LOGIN = "";
            }
        })
	}
}